//---------------------------------------------------------------------------

#ifndef FrameProviderDlgH
#define FrameProviderDlgH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Buttons.hpp>
#include <ExtCtrls.hpp>

#include "DateUtilities.h"
#include "Error.h"
#include "FrameProviderBridge.h"
#include <ComCtrls.hpp>

//---------------------------------------------------------------------------
class TfrmFrameProviderDlg : public TForm
{
__published:	// IDE-managed Components
        TPanel *pnlMain;
        TBitBtn *btnOk;
        TBitBtn *btnHelp;
        TBitBtn *btnCancel;
        TLabel *lblName;
        TEdit *edtName;
        TLabel *lblAddress;
        TEdit *edtAddress;
        TLabel *lblPhone;
        TEdit *edtPhone;
        void __fastcall btnOKClick(TObject *Sender);
private:
        TFrameProviderBridge* bridge;
        TFrameProvider* provider;

        void ShowProvider();
        void GatherProvider();
        void AddNewProvider();
        void UpdateProvider();

        void ValidateData();
        void HandleError( TError * e);
public:
        __fastcall TfrmFrameProviderDlg(TComponent* Owner, TFrameProviderBridge* bridge, TFrameProvider* provider);
};
//---------------------------------------------------------------------------
#endif
